#include <iostream>
using namespace std;

/*
	
*/

struct student //披着结构体的外衣
{
	char name[10];
	int age;
	//重载加法运算，作为成员函数
	int operator+(struct student &other)
	{
		cout<<"结构体做加法"<<endl;
		return age+other.age;
	}
};

int main()
{
	struct student stu1={"张三",18};
	struct student stu2={"李四",20};
	cout<<"stu1+stu2 is: "<<stu1+stu2<<endl;
}